<?php

namespace App\Http\Controllers\User;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Models\Task;
use App\Repos\UserExpertRepo;

class ExpertController extends Controller
{
    

    /**
     * 专家列表
     */
    public function index(Request $request)
    {
    	$list = UserExpertRepo::pages();
        return view('zhuanjia.index',compact('list'));
    }

    /**
     * 专家详情
     */
    public function show(Request $request,$id)
    {
        $data = UserExpertRepo::find(['id'=>$id]);
        return view('zhuanjia.expert-show',compact('data'));
    }

  
    
}
